package com.dayang.nm.ugcaudit.action;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import net.sf.json.JSONObject;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

import com.dayang.baseplatform.model.CommonDisplay;
import com.dayang.baseplatform.model.UgcTask;
import com.dayang.baseplatform.service.ugcaudit.AuditListService;
import com.dayang.baseplatform.service.ugcaudit.UgcDestListService;

public class UgcDestListAction extends BaseAction {
	
	@Override
	public String create(ActionMapping mapping, ActionForm form, HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		
		return null;
	}

	@Override
	public String delete(ActionMapping mapping, ActionForm form, HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		return null;
	}

	@Override
	public String update(ActionMapping mapping, ActionForm form, HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		return null;
	}

	@Override
	public String read(ActionMapping mapping, ActionForm form, HttpServletRequest request,
			HttpServletResponse response) throws Exception {
				
		UgcDestListService service = new UgcDestListService();
		CommonDisplay commonDisplay = service.read();
		
		JSONObject object = JSONObject.fromBean(commonDisplay);
		String jsonStr = object.toString();
		
		return jsonStr;
	}
	
	//tomato princess...
	
}
